<?php
namespace backend\components\helper;

class Formatter extends \yii\i18n\Formatter
{
    /**
     * asMoney
     * @param $value
     * @return string
     */
    public function asMoney($value)
    {
        if ($value === null) {
            return $this->nullDisplay;
        }
        return  is_numeric($value)?'¥ '.floatval($value):$value;
    }
}